﻿using System;
using System.ComponentModel;
using System.Linq;
using ProjectEuler.Linq;

namespace ProjectEuler.Problems
{
    [EulerProblem(45, Skip=true)]
    [Description("After 40755, what is the next triangle number that is also pentagonal and hexagonal?")]
    internal sealed class Problem045 : EulerProblem
    {
        public override Object Solve()
        {
            var istri = (40755L).IsTriangular();
            var ispenta = (40755L).IsPentagonal();
            var ishexa = (40755L).IsHexagonal();

            var root = (40755L).TriangularRoot();
            var tri = root.Value.Triangular();

            throw new NotImplementedException();
            //return Integers.TriangleNumbers(40755L).Skip(1).First(n => n.IsPentagonal() && n.IsHexagonal());
        }
    }
}
